
<!doctype html>
<html lang="en">
<head>

	<meta charset="UTF-8">
	<title>傲小兮</title>
	<link rel="stylesheet" href="../Public/css/AfterLogin_index.css">
	<link rel="stylesheet" href="../Public/css/Usercenter_fensi.css">
	<link rel="stylesheet" href="../Public/bs/css/bootstrap.min.css">
	<link href="__PUBLIC__/favicon.ico" rel="shortcut icon">
	<script src="../Public/bs/js/jquery.min.js"></script>
	<script src="../Public/bs/js/bootstrap.min.js"></script>
	<script src='../Public/kd/kindeditor-min.js'></script>
	<script type="text/javascript" src="../Public/layer/layer.js"></script>
	<script>
		//分配发布微博变量到js中
		src="__URL__/addMessage";
		name="<{$_SESSION['home_username']}>";
		img="__PUBLIC__/uploads/<{$_SESSION['face65']}>";
		a_src="__APP__/Usercenter/index/username/<{$_SESSION['home_username']}>";
		//分配删除微博变量到js中
		del_src="__URL__/delMessage";
		id="";
		//分配点赞变量到js
		dianzan_src="__URL__/dianzan";
	</script>
	<script src="../Public/js/AfterLogin_index.js"></script>
	<style>
		.righttot{position: absolute;top:45px;left:162px;width:500px;z-index:2;background: #fff;border:1px solid #ccc;
			border-bottom:none;border-top:none}.personname2,.message2{width:380px;}.touxiang1{width:80px;float:left;margin-left:15px;margin-top:8px;}.touxiangbox1{width:65px;  height:65px;border-radius:65px;overflow:hidden;border:1px solid #ccc;}.message2 {float: left;width: 380px;font-size: 14px; margin-left: 15px;margin-top:15px; }.message2 span{font-size:13px;}.message2 span a{  font-size:13px;color:#FA7D3C;font-weight:bold;}.personname2{  width:380px;  height:25px;  float:left;  font-weight:bold;  font-size:18px;  margin-left:15px; margin-top:25px;  }hr{clear:left;}.right1{width:500px;z-index:2;background: #fff;border-bottom:1px solid #ccc;height:80px;}.personname2 a{color:#000000} .personname2 a:hover{color:#FE7E00;text-decoration: none}
	</style>
	<style>
		.com{
			display: none;background: #fff;margin-top: -10px;}
	</style>
</head>
<body>
	<include file='Public:AfterLogin_head' />
	<div class="righttot">

	</div>
	<div class="contenttot">
	<div class="content">
		<div class="content_left">
			<a href="__APP__/Usercenter/upload/" target="_blank">上传头像</a>
		</div>
		<div class="content_middle">
			<div class="content_middle_top">
				<span>有什么新鲜事告诉大家</span>
				<span class='ftnum'>还可输入140字</span>
				<p></p>
				<form action="__URL__/index" method="post">
					<textarea name="content" class='smtextarea'></textarea>
					<input type="button" value="发布" class="btn btn-warning fb">
				</form>
			</div>
			<!-- //遍历模块分配过来的数组 -->
			<volist name="rows" id="info">	
				<div class="content_middle_center">
					<div class="touxiang">
						<div class="touxiangbox" >
							<img src="__PUBLIC__/uploads/<{$info['minitouxiang']}>" alt="">
						</div>
					</div>
					<div class="personname">
						<a href="__APP__/Usercenter/index/username/<{$info['username']}>"><{$info['username']}></a>
					</div>
					<div class="message">
						<{$info['content']}>
					</div>
					<div class="time">
						<{$info['time']}>
					</div>
					<div class="comment">
						<span ><a href="javascript:" class="del" index="<{$info['id']}>">删除</a></span>
						<span>|</span>
						<span><a href="javascript:" class="forward" index="<{$info['id']}>">转发</a></span>
						<span>|</span>
						<!--<span><a href="javascript:" class="comm" index="<{$info['id']}>">评论(<{$comm_num}>)</a></span>-->
						<!--<span>|</span>-->
						<span class='glyphicon glyphicon-thumbs-up dianzan' index="<{$info['id']}>"><{$info['zan']}></span>
					</div>

					<div class="clear"></div>
				</div>
				<div class="com"  id="<{$info['id']}>">
					<volist name="comms" id="comm">
						<div class="content_middle_center" style="border-bottom: 1px solid #888">
							<div class="touxiang">
								<div class="touxiangbox" >
									<img src="__PUBLIC__/uploads/<{$info['minitouxiang']}>" alt="">
								</div>
							</div>
							<div class="personname">
								<a href="__APP__/Usercenter/index/username/<{$info['username']}>"><{$info['username']}></a>
							</div>

							<div class="time">
								<{$info['time']}>
							</div>
							<div class="comm_info">
								<span><{$comm['info']}></span>
							</div>

							<div class="clear"></div>
						</div>
					</volist>
				</div>
			</volist>
		</div>
		<div class="content_right">
			<div class="content_right_top">
				<img src="__PUBLIC__/uploads/564eedb09587e.jpg" alt="">
				<div class="smtouxiang">
					<a href="__APP__/Usercenter/index/username/<{$_SESSION['home_username']}>"><img src="__PUBLIC__/uploads/<{$_SESSION['face65']}>" alt=""></a>
				</div>
				<div class="bottomname">
					<a href="__APP__/Usercenter/index/username/<{$_SESSION['home_username']}>"><{$_SESSION['home_username']}></a><span class="level"><i>Lv.13</i></span>
				</div>	
				<div class="focus">
					<div class="left"><span class="ff" ><a href="__APP__/Usercenter/focus/username/<{$_SESSION['home_username']}>"><{$fnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">关注</span></div>
					<div class="left"><span class="ff"><a href="__APP__/Usercenter/fensi/username/<{$_SESSION['home_username']}>"><{$fsnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">粉丝</span></div>
					<div class="left"><span class="ff"><a href="__APP__/Usercenter/index/username/<{$_SESSION['home_username']}>"  id='nums'><{$wbnums}></a></span><br/><span style="font-size:13px;color:#8B8B8B">微博</span></div>
				</div>
			</div>
			<div class="content_right_center">
				<span class='rm'><a href="#">热门话题</a></span>
				<span class='hyp'><a href="#">换一批</a></span>
				<div class="clear"></div>
				<hr>
				<ul>
					<volist name="links"  id="info">
						<li><a href="<{$info['url']}>">#<{$info['name']}>#</a><span><{$info['title']}></span></li>
					</volist>
				</ul>
				<hr>
				<span class='ckgd'><a href="#">查看更多 &nbsp;></a></span>
			</div>
			<div class="content_right_center1">
				<span class='wbpd'><a href="#">微博频道</a></span>
				<hr>
				<div class="box">
					<span><img src='../Public/images/rm.png'> <a href="">热门话题</a></span>
					<span><img src='../Public/images/zr.png'> <a href="">找人</a></span>
					<span><img src='../Public/images/dy.png'> <a href="">电影</a></span>	
				</div>
				<div class="box">
					<span><img src='../Public/images/rmw.png'> <a href="">热门微博</a></span>
					<span><img src='../Public/images/gp.png'> <a href="">股票</a></span>
					<span><img src='../Public/images/gw.png'> <a href="">购物</a></span>
					
				</div>
				<div class="box">
					<span><img src='../Public/images/tg.png'> <a href="">听歌</a></span>
					<span><img src='../Public/images/sp.png'> <a href="">视频</a></span>
					<span><img src='../Public/images/ly.png'> <a href="">旅游</a></span>
				</div>
				<div class="box">
					<span><img src='../Public/images/tg.png'> <a href="">听歌</a></span>
					<span><img src='../Public/images/sp.png'> <a href="">视频</a></span>
					<span><img src='../Public/images/ly.png'> <a href="">旅游</a></span>
				</div>
			</div>
			<div class="content_right_center2">
				<a href="http://weibo.com/p/10080811013b25c6a0284473c9ad2339921203?k=%E5%A5%94%E8%B7%91%E5%90%A7%E5%85%84%E5%BC%9F" target='blank'><img src="../Public/images/benpao.png" width="217px"></a>
			</div>	
			<div class="content_right_center3">
				<span class='wbzr'>微博找人</span>
				<hr>
				<span>名人</span>
				<span>专家</span>
				<span>兴趣</span>
			</div>	
		</div>
		<div class="clear"></div>
	</div>
	</div>
</body>
<script>
	//查找人
	$('input[name=find]').change(function(){
		val=$(this).val();
		href='__APP__/Usercenter/index/username/';
		$.post('__URL__/findPeople',{'value':val,'href':href},function(r){
			$('.righttot').append(r);
		});
	})
	//转发微博
	$('.forward').click(function(){
		id=$(this).attr('index');
		layer.confirm('您确定要转发这条微博吗？', {
			btn: ['确定','取消'] //按钮
		},function() {
			$.get('__URL__/forward', {val: id}, function (r) {
				if (r.status==1) {
					location.href = location;
					layer.msg(r.msg, {icon: 6});
				}
			},'json');
		})
	})
	//评论微博
	$('.comm').toggle(function(){
		id=$(this).attr('index');
		$.get('__URL__/comment',{id:id},function(r){

		});
		tobj = document.getElementById(id);
		tobj.style.display = 'block';

	},function(){
		id=$(this).attr('index');
		tobj = document.getElementById(id);
		tobj.style.display = 'none';
	});
</script>
</html>